import {http} from '@/utils/http'

// 添加收货地址
export function addAddress(data:any) {
    return http.post<any>('/admin/address/addAddress', data)
}

// 修改收货地址
export function updateAddress(data:any) {
    return http.post<any>('/admin/address/updateAddress', data)
}

// 删除收货地址
export function deleteAddress(id:string) {
    return http.post<any>('/admin/address/deleteAddress/'+id)
}

// 获取收货地址详情
export function getAddress(id:any) {
    return http.post<any>('/admin/address/getAddress/'+id)
}

// 获取收货地址分页列表
export function getAddressPage(data:any) {
    return http.post<any>('/admin/address/getAddressPage', data)
}





















